package com.zhongwang.mms.gen.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TEmployExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TEmployExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andEmpIdIsNull() {
            addCriterion("emp_id is null");
            return (Criteria) this;
        }

        public Criteria andEmpIdIsNotNull() {
            addCriterion("emp_id is not null");
            return (Criteria) this;
        }

        public Criteria andEmpIdEqualTo(Integer value) {
            addCriterion("emp_id =", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdNotEqualTo(Integer value) {
            addCriterion("emp_id <>", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdGreaterThan(Integer value) {
            addCriterion("emp_id >", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("emp_id >=", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdLessThan(Integer value) {
            addCriterion("emp_id <", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdLessThanOrEqualTo(Integer value) {
            addCriterion("emp_id <=", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdIn(List<Integer> values) {
            addCriterion("emp_id in", values, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdNotIn(List<Integer> values) {
            addCriterion("emp_id not in", values, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdBetween(Integer value1, Integer value2) {
            addCriterion("emp_id between", value1, value2, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdNotBetween(Integer value1, Integer value2) {
            addCriterion("emp_id not between", value1, value2, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpDepIdIsNull() {
            addCriterion("emp_dep_id is null");
            return (Criteria) this;
        }

        public Criteria andEmpDepIdIsNotNull() {
            addCriterion("emp_dep_id is not null");
            return (Criteria) this;
        }

        public Criteria andEmpDepIdEqualTo(Integer value) {
            addCriterion("emp_dep_id =", value, "empDepId");
            return (Criteria) this;
        }

        public Criteria andEmpDepIdNotEqualTo(Integer value) {
            addCriterion("emp_dep_id <>", value, "empDepId");
            return (Criteria) this;
        }

        public Criteria andEmpDepIdGreaterThan(Integer value) {
            addCriterion("emp_dep_id >", value, "empDepId");
            return (Criteria) this;
        }

        public Criteria andEmpDepIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("emp_dep_id >=", value, "empDepId");
            return (Criteria) this;
        }

        public Criteria andEmpDepIdLessThan(Integer value) {
            addCriterion("emp_dep_id <", value, "empDepId");
            return (Criteria) this;
        }

        public Criteria andEmpDepIdLessThanOrEqualTo(Integer value) {
            addCriterion("emp_dep_id <=", value, "empDepId");
            return (Criteria) this;
        }

        public Criteria andEmpDepIdIn(List<Integer> values) {
            addCriterion("emp_dep_id in", values, "empDepId");
            return (Criteria) this;
        }

        public Criteria andEmpDepIdNotIn(List<Integer> values) {
            addCriterion("emp_dep_id not in", values, "empDepId");
            return (Criteria) this;
        }

        public Criteria andEmpDepIdBetween(Integer value1, Integer value2) {
            addCriterion("emp_dep_id between", value1, value2, "empDepId");
            return (Criteria) this;
        }

        public Criteria andEmpDepIdNotBetween(Integer value1, Integer value2) {
            addCriterion("emp_dep_id not between", value1, value2, "empDepId");
            return (Criteria) this;
        }

        public Criteria andEmpDepNameIsNull() {
            addCriterion("emp_dep_name is null");
            return (Criteria) this;
        }

        public Criteria andEmpDepNameIsNotNull() {
            addCriterion("emp_dep_name is not null");
            return (Criteria) this;
        }

        public Criteria andEmpDepNameEqualTo(String value) {
            addCriterion("emp_dep_name =", value, "empDepName");
            return (Criteria) this;
        }

        public Criteria andEmpDepNameNotEqualTo(String value) {
            addCriterion("emp_dep_name <>", value, "empDepName");
            return (Criteria) this;
        }

        public Criteria andEmpDepNameGreaterThan(String value) {
            addCriterion("emp_dep_name >", value, "empDepName");
            return (Criteria) this;
        }

        public Criteria andEmpDepNameGreaterThanOrEqualTo(String value) {
            addCriterion("emp_dep_name >=", value, "empDepName");
            return (Criteria) this;
        }

        public Criteria andEmpDepNameLessThan(String value) {
            addCriterion("emp_dep_name <", value, "empDepName");
            return (Criteria) this;
        }

        public Criteria andEmpDepNameLessThanOrEqualTo(String value) {
            addCriterion("emp_dep_name <=", value, "empDepName");
            return (Criteria) this;
        }

        public Criteria andEmpDepNameLike(String value) {
            addCriterion("emp_dep_name like", value, "empDepName");
            return (Criteria) this;
        }

        public Criteria andEmpDepNameNotLike(String value) {
            addCriterion("emp_dep_name not like", value, "empDepName");
            return (Criteria) this;
        }

        public Criteria andEmpDepNameIn(List<String> values) {
            addCriterion("emp_dep_name in", values, "empDepName");
            return (Criteria) this;
        }

        public Criteria andEmpDepNameNotIn(List<String> values) {
            addCriterion("emp_dep_name not in", values, "empDepName");
            return (Criteria) this;
        }

        public Criteria andEmpDepNameBetween(String value1, String value2) {
            addCriterion("emp_dep_name between", value1, value2, "empDepName");
            return (Criteria) this;
        }

        public Criteria andEmpDepNameNotBetween(String value1, String value2) {
            addCriterion("emp_dep_name not between", value1, value2, "empDepName");
            return (Criteria) this;
        }

        public Criteria andEmpCodeIsNull() {
            addCriterion("emp_code is null");
            return (Criteria) this;
        }

        public Criteria andEmpCodeIsNotNull() {
            addCriterion("emp_code is not null");
            return (Criteria) this;
        }

        public Criteria andEmpCodeEqualTo(String value) {
            addCriterion("emp_code =", value, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeNotEqualTo(String value) {
            addCriterion("emp_code <>", value, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeGreaterThan(String value) {
            addCriterion("emp_code >", value, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeGreaterThanOrEqualTo(String value) {
            addCriterion("emp_code >=", value, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeLessThan(String value) {
            addCriterion("emp_code <", value, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeLessThanOrEqualTo(String value) {
            addCriterion("emp_code <=", value, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeLike(String value) {
            addCriterion("emp_code like", value, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeNotLike(String value) {
            addCriterion("emp_code not like", value, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeIn(List<String> values) {
            addCriterion("emp_code in", values, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeNotIn(List<String> values) {
            addCriterion("emp_code not in", values, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeBetween(String value1, String value2) {
            addCriterion("emp_code between", value1, value2, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeNotBetween(String value1, String value2) {
            addCriterion("emp_code not between", value1, value2, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpNameIsNull() {
            addCriterion("emp_name is null");
            return (Criteria) this;
        }

        public Criteria andEmpNameIsNotNull() {
            addCriterion("emp_name is not null");
            return (Criteria) this;
        }

        public Criteria andEmpNameEqualTo(String value) {
            addCriterion("emp_name =", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameNotEqualTo(String value) {
            addCriterion("emp_name <>", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameGreaterThan(String value) {
            addCriterion("emp_name >", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameGreaterThanOrEqualTo(String value) {
            addCriterion("emp_name >=", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameLessThan(String value) {
            addCriterion("emp_name <", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameLessThanOrEqualTo(String value) {
            addCriterion("emp_name <=", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameLike(String value) {
            addCriterion("emp_name like", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameNotLike(String value) {
            addCriterion("emp_name not like", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameIn(List<String> values) {
            addCriterion("emp_name in", values, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameNotIn(List<String> values) {
            addCriterion("emp_name not in", values, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameBetween(String value1, String value2) {
            addCriterion("emp_name between", value1, value2, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameNotBetween(String value1, String value2) {
            addCriterion("emp_name not between", value1, value2, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpOrderNoIsNull() {
            addCriterion("emp_order_no is null");
            return (Criteria) this;
        }

        public Criteria andEmpOrderNoIsNotNull() {
            addCriterion("emp_order_no is not null");
            return (Criteria) this;
        }

        public Criteria andEmpOrderNoEqualTo(Integer value) {
            addCriterion("emp_order_no =", value, "empOrderNo");
            return (Criteria) this;
        }

        public Criteria andEmpOrderNoNotEqualTo(Integer value) {
            addCriterion("emp_order_no <>", value, "empOrderNo");
            return (Criteria) this;
        }

        public Criteria andEmpOrderNoGreaterThan(Integer value) {
            addCriterion("emp_order_no >", value, "empOrderNo");
            return (Criteria) this;
        }

        public Criteria andEmpOrderNoGreaterThanOrEqualTo(Integer value) {
            addCriterion("emp_order_no >=", value, "empOrderNo");
            return (Criteria) this;
        }

        public Criteria andEmpOrderNoLessThan(Integer value) {
            addCriterion("emp_order_no <", value, "empOrderNo");
            return (Criteria) this;
        }

        public Criteria andEmpOrderNoLessThanOrEqualTo(Integer value) {
            addCriterion("emp_order_no <=", value, "empOrderNo");
            return (Criteria) this;
        }

        public Criteria andEmpOrderNoIn(List<Integer> values) {
            addCriterion("emp_order_no in", values, "empOrderNo");
            return (Criteria) this;
        }

        public Criteria andEmpOrderNoNotIn(List<Integer> values) {
            addCriterion("emp_order_no not in", values, "empOrderNo");
            return (Criteria) this;
        }

        public Criteria andEmpOrderNoBetween(Integer value1, Integer value2) {
            addCriterion("emp_order_no between", value1, value2, "empOrderNo");
            return (Criteria) this;
        }

        public Criteria andEmpOrderNoNotBetween(Integer value1, Integer value2) {
            addCriterion("emp_order_no not between", value1, value2, "empOrderNo");
            return (Criteria) this;
        }

        public Criteria andEmpStatusIsNull() {
            addCriterion("emp_status is null");
            return (Criteria) this;
        }

        public Criteria andEmpStatusIsNotNull() {
            addCriterion("emp_status is not null");
            return (Criteria) this;
        }

        public Criteria andEmpStatusEqualTo(Integer value) {
            addCriterion("emp_status =", value, "empStatus");
            return (Criteria) this;
        }

        public Criteria andEmpStatusNotEqualTo(Integer value) {
            addCriterion("emp_status <>", value, "empStatus");
            return (Criteria) this;
        }

        public Criteria andEmpStatusGreaterThan(Integer value) {
            addCriterion("emp_status >", value, "empStatus");
            return (Criteria) this;
        }

        public Criteria andEmpStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("emp_status >=", value, "empStatus");
            return (Criteria) this;
        }

        public Criteria andEmpStatusLessThan(Integer value) {
            addCriterion("emp_status <", value, "empStatus");
            return (Criteria) this;
        }

        public Criteria andEmpStatusLessThanOrEqualTo(Integer value) {
            addCriterion("emp_status <=", value, "empStatus");
            return (Criteria) this;
        }

        public Criteria andEmpStatusIn(List<Integer> values) {
            addCriterion("emp_status in", values, "empStatus");
            return (Criteria) this;
        }

        public Criteria andEmpStatusNotIn(List<Integer> values) {
            addCriterion("emp_status not in", values, "empStatus");
            return (Criteria) this;
        }

        public Criteria andEmpStatusBetween(Integer value1, Integer value2) {
            addCriterion("emp_status between", value1, value2, "empStatus");
            return (Criteria) this;
        }

        public Criteria andEmpStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("emp_status not between", value1, value2, "empStatus");
            return (Criteria) this;
        }

        public Criteria andEmpPidIsNull() {
            addCriterion("emp_pid is null");
            return (Criteria) this;
        }

        public Criteria andEmpPidIsNotNull() {
            addCriterion("emp_pid is not null");
            return (Criteria) this;
        }

        public Criteria andEmpPidEqualTo(Integer value) {
            addCriterion("emp_pid =", value, "empPid");
            return (Criteria) this;
        }

        public Criteria andEmpPidNotEqualTo(Integer value) {
            addCriterion("emp_pid <>", value, "empPid");
            return (Criteria) this;
        }

        public Criteria andEmpPidGreaterThan(Integer value) {
            addCriterion("emp_pid >", value, "empPid");
            return (Criteria) this;
        }

        public Criteria andEmpPidGreaterThanOrEqualTo(Integer value) {
            addCriterion("emp_pid >=", value, "empPid");
            return (Criteria) this;
        }

        public Criteria andEmpPidLessThan(Integer value) {
            addCriterion("emp_pid <", value, "empPid");
            return (Criteria) this;
        }

        public Criteria andEmpPidLessThanOrEqualTo(Integer value) {
            addCriterion("emp_pid <=", value, "empPid");
            return (Criteria) this;
        }

        public Criteria andEmpPidIn(List<Integer> values) {
            addCriterion("emp_pid in", values, "empPid");
            return (Criteria) this;
        }

        public Criteria andEmpPidNotIn(List<Integer> values) {
            addCriterion("emp_pid not in", values, "empPid");
            return (Criteria) this;
        }

        public Criteria andEmpPidBetween(Integer value1, Integer value2) {
            addCriterion("emp_pid between", value1, value2, "empPid");
            return (Criteria) this;
        }

        public Criteria andEmpPidNotBetween(Integer value1, Integer value2) {
            addCriterion("emp_pid not between", value1, value2, "empPid");
            return (Criteria) this;
        }

        public Criteria andEmpCreateTimeIsNull() {
            addCriterion("emp_create_time is null");
            return (Criteria) this;
        }

        public Criteria andEmpCreateTimeIsNotNull() {
            addCriterion("emp_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andEmpCreateTimeEqualTo(Date value) {
            addCriterion("emp_create_time =", value, "empCreateTime");
            return (Criteria) this;
        }

        public Criteria andEmpCreateTimeNotEqualTo(Date value) {
            addCriterion("emp_create_time <>", value, "empCreateTime");
            return (Criteria) this;
        }

        public Criteria andEmpCreateTimeGreaterThan(Date value) {
            addCriterion("emp_create_time >", value, "empCreateTime");
            return (Criteria) this;
        }

        public Criteria andEmpCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("emp_create_time >=", value, "empCreateTime");
            return (Criteria) this;
        }

        public Criteria andEmpCreateTimeLessThan(Date value) {
            addCriterion("emp_create_time <", value, "empCreateTime");
            return (Criteria) this;
        }

        public Criteria andEmpCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("emp_create_time <=", value, "empCreateTime");
            return (Criteria) this;
        }

        public Criteria andEmpCreateTimeIn(List<Date> values) {
            addCriterion("emp_create_time in", values, "empCreateTime");
            return (Criteria) this;
        }

        public Criteria andEmpCreateTimeNotIn(List<Date> values) {
            addCriterion("emp_create_time not in", values, "empCreateTime");
            return (Criteria) this;
        }

        public Criteria andEmpCreateTimeBetween(Date value1, Date value2) {
            addCriterion("emp_create_time between", value1, value2, "empCreateTime");
            return (Criteria) this;
        }

        public Criteria andEmpCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("emp_create_time not between", value1, value2, "empCreateTime");
            return (Criteria) this;
        }

        public Criteria andEmpTypeIsNull() {
            addCriterion("emp_type is null");
            return (Criteria) this;
        }

        public Criteria andEmpTypeIsNotNull() {
            addCriterion("emp_type is not null");
            return (Criteria) this;
        }

        public Criteria andEmpTypeEqualTo(Integer value) {
            addCriterion("emp_type =", value, "empType");
            return (Criteria) this;
        }

        public Criteria andEmpTypeNotEqualTo(Integer value) {
            addCriterion("emp_type <>", value, "empType");
            return (Criteria) this;
        }

        public Criteria andEmpTypeGreaterThan(Integer value) {
            addCriterion("emp_type >", value, "empType");
            return (Criteria) this;
        }

        public Criteria andEmpTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("emp_type >=", value, "empType");
            return (Criteria) this;
        }

        public Criteria andEmpTypeLessThan(Integer value) {
            addCriterion("emp_type <", value, "empType");
            return (Criteria) this;
        }

        public Criteria andEmpTypeLessThanOrEqualTo(Integer value) {
            addCriterion("emp_type <=", value, "empType");
            return (Criteria) this;
        }

        public Criteria andEmpTypeIn(List<Integer> values) {
            addCriterion("emp_type in", values, "empType");
            return (Criteria) this;
        }

        public Criteria andEmpTypeNotIn(List<Integer> values) {
            addCriterion("emp_type not in", values, "empType");
            return (Criteria) this;
        }

        public Criteria andEmpTypeBetween(Integer value1, Integer value2) {
            addCriterion("emp_type between", value1, value2, "empType");
            return (Criteria) this;
        }

        public Criteria andEmpTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("emp_type not between", value1, value2, "empType");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}